<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:c="http://java.sun.com/jsp/jstl/core">

<h:head>
	<title>TravelDream</title>
	<link rel="stylesheet" type="text/css" href="../style/modificadati.css" />
</h:head>
<h:body>
		<div id="main">
		<div id="upper">
			<div id="logo"><a href="/TravelDreamWeb/home.jsf"><img id="logo-img" src="../img/logo.png"/></a></div>
			<div id="login-up">Benvenuto, #{utenteBean.name} 
				<h:form><p:commandButton action="#{logoutBean.logout}" value="Logout" /></h:form>
			</div>
		</div>
		<div id="center">
			<p:outputLabel value="Riepilogo dati personali: " /><br/>
			<h:form id="form">			
				<h:panelGrid id="display" columns="3" cellpadding="4" style="margin:0 auto;">  
  
            		<h:outputText value="Nome:" style="font-weight:bold"/>  
            		<p:inputText id="nome" value="#{utenteBean.name}" required="true" requiredMessage="Campo obbligatorio!"/>
            		<p:message for="nome"/>
  
  			 	    <h:outputText value="Cognome:" style="font-weight:bold"/>   
            		<p:inputText id="cog" value="#{utenteBean.cognome}" required="true" requiredMessage="Campo obbligatorio!"/>
            		<p:message for="cog"/>
            
  			 		<h:outputText value="Email:" style="font-weight:bold"/>   
            		<p:inputText id="email" value="#{utenteBean.email}" required="true" requiredMessage="Campo obbligatorio!" />
            		<p:message for="email"/>
  
             		<h:outputText value="Data di nascita:" style="font-weight:bold"/>  
            		<p:inputText id="data" value="#{utenteBean.dataNascita}" required="true" requiredMessage="Campo obbligatorio!" />
  					<p:message for="data"/>
          
             		<h:outputText value="Telefono:" style="font-weight:bold"/>   
            		<p:inputText id="tel" value="#{utenteBean.telefono}" required="true" requiredMessage="Campo obbligatorio!" />
          			<p:message for="tel"/>
                     
            		<h:outputText value=" " />
            		<p:commandButton value="Modifica" action="#{utenteBean.modifica()}" />
        		</h:panelGrid>  
			</h:form>
		</div>
		<div id="footer">
			<h:link outcome="PaginaPersonale" value="Torna alla pagina personale" />
		</div>
	</div>
</h:body>
</html>